home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / exec / abortio.c next >
C/C++ Source or Header  |  1996-09-12  |  2KB  |  68 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: abortio.c,v 1.4 1996/08/13 13:55:55 digulla Exp $
  4.     $Log: abortio.c,v $
  5.     Revision 1.4  1996/08/13 13:55:55  digulla
  6.     Replaced __AROS_LA by __AROS_LHA
  7.     Replaced some __AROS_LH*I by __AROS_LH*
  8.     Sorted and added includes
  9.  
  10.     Revision 1.3  1996/08/01 17:41:01  digulla
  11.     Added standard header for all files
  12.  
  13.     Desc:
  14.     Lang: english
  15. */
  16. #include <exec/execbase.h>
  17. #include <exec/io.h>
  18. #include <aros/libcall.h>
  19.  
  20. /*****************************************************************************
  21.  
  22.     NAME */
  23.     #include <clib/exec_protos.h>
  24.  
  25.     __AROS_LH1I(LONG, AbortIO,
  26.  
  27. /*  SYNOPSIS */
  28.     __AROS_LHA(struct IORequest *, iORequest, A1),
  29.  
  30. /*  LOCATION */
  31.     struct ExecBase *, SysBase, 80, Exec)
  32.  
  33. /*  FUNCTION
  34.     Calls the AbortIO vector of the appropriate device to stop an
  35.     asyncronously started io request before completion. This may
  36.     or may not be done. You still have to do a WaitIO() on the
  37.     iorequest structure.
  38.  
  39.     INPUTS
  40.     iORequest - Pointer to iorequest structure.
  41.  
  42.     RESULT
  43.     Errorcode if the abort request failed, 0 if the abort request went
  44.     well. io_Error will then be set to IOERR_ABORTED.
  45.  
  46.     NOTES
  47.  
  48.     EXAMPLE
  49.  
  50.     BUGS
  51.  
  52.     SEE ALSO
  53.     OpenDevice(), CloseDevice(), DoIO(), SendIO(), WaitIO()
  54.  
  55.     INTERNALS
  56.  
  57.     HISTORY
  58.  
  59. ******************************************************************************/
  60. {
  61.     __AROS_FUNC_INIT
  62.  
  63.     return __AROS_LVO_CALL1(ULONG,6,iORequest->io_Device,iORequest,A1);
  64.  
  65.     __AROS_FUNC_EXIT
  66. } /* AbortIO */
  67.  
  68.